package com.csmz.mybookreadernew.UI.Fragment;

import android.widget.FrameLayout;

import com.csmz.mybookreadernew.R;
import com.csmz.mybookreadernew.UI.View.MyInfoView;
import com.king.base.BaseFragment;

public class MyFragment extends BaseFragment {
    private MyInfoView mMyInfoView;
    private FrameLayout mBodyLayout;
    @Override
    public int inflaterRootView() {
        return R.layout.fragment_my;
    }

    @Override
    public void initUI() {
        mBodyLayout = findView(R.id.frame_layout);
//        if (mMyInfoView == null){
            mMyInfoView=new MyInfoView(getActivity());
//            mBodyLayout.addView(mMyInfoView.getView());
//        }else {
//            mMyInfoView.getView();
//        }
        mBodyLayout.addView(mMyInfoView.getView());
        mMyInfoView.showView();
    }

    @Override
    public void initData() {

    }

    @Override
    public void addListeners() {

    }
}
